﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Student: Person
    {
        public  void student() 
        {
            Console.WriteLine("请输入ID:");
            this.Id = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入姓名：");
            this.Name = Console.ReadLine();
            Console.WriteLine("请输入性别：");
            this.Sex = char.Parse(Console.ReadLine());
            Console.WriteLine("请输入身份证号：");
            this.Cardid = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入电话号码：");
            this.Tel = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入专业：");
            this.Major = Console.ReadLine();
            Console.WriteLine("请输入年级：");
            this.Grade = Console.ReadLine();

            Print();
        }
        public void Print()
        {
            Console.WriteLine("ID:" + this.Id + " " + "姓名：" + this.Name + " " + "性别：" + this.Sex + " " + "身份证号：" + this.Cardid + " " + "电话号码：" + this.Tel + " " + "专业：" + this.Major + " " + "年级：" + this.Grade);
        }
    }
}